package com.design.mode.status;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-04-11 10:40:54
 */
public class RaffleActivity {

    private State state;

    private final State a = new AState();
    private final State b = new BState();
    private final State c = new CState();

    public void toA() {
        state = a;
    }

    public void toB() {
        state = b;
    }

    public void toC() {
        state = c;
    }

    public State getState() {
        return state;
    }
}
